import pytest


@pytest.fixture()
def login():
    print("---登录")


@pytest.fixture()
def fun(login):
    print("---fun")

@pytest.fixture(autouse=False, scope="function")
def f0():
    print("---fixture : function-前(局部)")
    yield
    print("---fixture : function-后(局部)")